package com.springboot.mall.model.mappers;

import com.springboot.mall.model.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/*
*
*数据库操作方法定义，无需实现具体方法
*
* */
@Repository
public interface UserMapper {
    //通过名字查询对象
    User selectByName(String userName);
    int insertSelective(User user);
    //多个参数需要使用注解
    User selectLogin(@Param("userName") String userName, @Param("password") String password);
    int updateByPrimaryKeySelective(User user);

}
